Skip to main content
Trellis quants are based on a novel integer trellis rather than the scalar or block-based schemes used by other quant families. The integer trellis formulation enables reasonable CPU performance even at very low bits per weight — an unusual property at these compression levels.

Available types

Platform support

ROCm and Vulkan backends are not actively maintained. See the main README for details.

When to use trellis quants

Trellis quants are the right choice when memory constraints are severe and other options do not fit:
  • Very large models (70B+) where even IQ2_K does not fit in available memory
  • Situations where you need the smallest possible file at a given quality floor
  • Deployments on hardware where 1–2 BPW is the only viable option
For most use cases where memory permits, IQK quants at equivalent BPW will provide better quality. Trellis quants trade some quality headroom for extreme size reduction.

Tradeoffs vs IQK quants

Quantizing a model

Always use an imatrix with trellis quants. At 1–2 BPW, calibration data has a significant impact on output quality.
The same --custom-q and --dry-run options available for IQK quants also work with trellis types. See the IQK quants page for usage details.